﻿#include "pinyinhand.h"
#include "qpainter.h"
#include "qdebug.h"

PinYinHand::PinYinHand(QWidget *parent) : QWidget(parent)
{
    mousePressed = false;
    penWidth = 2;
    penColor = QColor(105, 110, 112, 255);
    bgColor = QColor(255, 255, 255, 255);
    image = QImage();
}

void PinYinHand::mousePressEvent(QMouseEvent *)
{
    mousePressed = true;
}

void PinYinHand::mouseMoveEvent(QMouseEvent *)
{
    qDebug() << "111";
}

void PinYinHand::mouseReleaseEvent(QMouseEvent *)
{
    mousePressed = false;
}

void PinYinHand::paintEvent(QPaintEvent *)
{

}

void PinYinHand::clear()
{

}
